package com.caigou.service;


import com.caigou.bean.es.EsBid;
import com.caigou.bean.param.EsBidParam;
import org.springframework.data.domain.Pageable;

import java.math.BigDecimal;
import java.util.List;
import java.util.Optional;
import org.springframework.data.domain.Page;

public interface IEsBidService {

    Optional<EsBid> findById(String id);
    
    Iterable<EsBid> findAllById(Iterable<String> ids);
    
    EsBid save(EsBid esBid);
    
    void delete(EsBid esBid);
    
    Page<EsBid> findByTitle(String title, Pageable pageable);
    
//    Page<EsBid> findByProjectName(String projectName, Pageable pageable);
    
    Page<EsBid> queryBid(String queryText, String startTime, String endTime, BigDecimal lowBidMoney, BigDecimal highBidMoney,
                         Pageable pageable);
    
    Page<EsBid> queryBidByIds(List<Long> bidIds);


    Page<EsBid> queryBidTitle(EsBidParam param);
}

